<div class="row">
  <div class="span3 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
  </div>

    <div class="alert span7" style="margin-top:10px;">
      <strong>说明：</strong> 此功能用于孩子转班
    </div>
   
   <div class="span7" style="margin-left:330px;"> 
      <form action="/<*$controller*>/<*$action*>" method="get" class="form-horizontal">       
		<input  type="text" name="studentname" class="span4"  placeholder="请输入孩子姓名" value="<*$studentname*>" /> 
        <input type="submit" class="btn btn-success"  value="输入孩子姓名开始查询"  >
         <input type="button" class="btn" value="重新查询" onclick="window.location='/<*$controller*>/<*$action*>'" >
      </form>
	</div>	 
    
<*if $result*>
<div class="span7" style=" margin-left:260px;">
    <ul class="unstyled clearfix">
   <*foreach from=$result item=item key=key name=foo*>
         <li class="white-panel span7">
<div class="white-panel-content">
	<div class="row-fluid">
    <div class="span4">
         <p> <strong><i class="icon-home"></i> <*$item.parent.realname*></strong>(<small><*$item.parent.pid*></small>)</p>
         <p>手机：<span title="mobile"><*if $item.parent.ischeck_mobile*><span class="label label-success">绑定</span><*else*><span class="label label-warning">未绑定</span><*/if*><*$item.parent.mobile*></span></p>
         <p>账号：<*if $item.parent.isinstalled*><span class="label label-info">已登录过</span><*else*><span class="label label-warning">还未登录</span><*/if*> <*$item.parent.username*> </p>
    </div>
    
    <div class="span7">
    <*foreach from=$item.student item=item1 key=key1 name=foo1*>
          <span <*if $item1.sex==1*>class="text-info"<*else*>class="text-error"<*/if*>><i class="icon-user"></i> 
          <strong><*$item1.cnname*></strong> <small title="uid">(<*$item1.uid*>)</small></span>
          
          <span class="pull-right <*if $item1.sex==1*>text-info<*else*>text-error<*/if*>" >
          <small><*$item1.sexDisp*> <*if $item1.age*><span title="出生于 <*$item1.birthday*>"><i class="icon-time"></i> <*$item1.age*>岁</span><*/if*></small>&nbsp;&nbsp;
		            
          </span>
          
         
        <dl class="dl-horizontal clearfix">
           <*foreach from=$item1.class item=a key =k name=f*>
           <hr />
           <dt style="text-align:left;" ><i class="icon-calendar"></i> <*$a.classname*></dt>
           <dd class="text-right clearfix"><small class="pull-right"><*$a.schoolname*><br />
          <*$a.groupname*></small>
          </dd>
          <*foreach from=$student_arr item=data*>
           <*if $data eq $a.classid*> 
            <dd class="text-right clearfix"> <button class="btn btn-primary btn-small" onClick="window.location.href='/<*$controller*>/transferclass/uid_class/<*$a.uid_class*>/cnname/<*$item1.cnname*>/student_uid/<*$item1.uid*>/groupid/<*$a.groupid*>/schoolid/<*$a.schoolid*>'">转班</button></dd>
            <*/if*> 
			<*/foreach*>
 
            
           <*/foreach*>
         </dl>
          
        <*/foreach*>
        <div>
        
          </div>
          </div>
</div>
        </div>
        </li>
<*/foreach*>
</ul>
</div>
<*/if*>
</div>



